package com.spc.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.spc.dao.Menudao;
import com.spc.pojo.Menu;
import com.spc.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(interfaceClass = MenuService.class)
@Transactional
public class MenuServiceImpl implements MenuService {
    @Autowired
    private Menudao menudao;
    @Override
    public List<Menu> findAll() {
        return menudao.findAll();
    }
}
